const express = require('express')
const router = express.Router()
const controller = require('../controller/{{name}}')

router.post('/api/{{name}}', controller.add)
router.delete('/api/{{name}}/:id', controller.remove)
router.put('/api/{{name}}', controller.update)
router.get('/api/{{name}}', controller.list)
router.get('/api/{{name}}/:id', controller.detail)
router.get('/{{name}}', controller.showIndex)
router.get('/{{name}}/add', controller.showAdd)
router.get('/{{name}}/edit/:id', controller.showEdit)

module.exports = router